//
//  Ptfl_Row_CCell.swift
//  Pods
//
//  Created by eme on 2017/3/27.
//
//


import UIKit
import RxSwift
import UtilCore

/*
 owner:cy
 update:2017年03月27日10:28:37
 info: 平台分类 Row的cell
 VC :  HomePageVc
 */
class Ptfl_Row_CCell: UICollectionViewCell {

    static let interitemSpacing:CGFloat = 0
    static let cellTop:CGFloat = 4
    static let cellBottom:CGFloat = 4
    static var cellSize:CGSize{
        get{
            let width = (screen_Width - 3*Ptfl_Row_CCell.interitemSpacing)/4
            let height = screen_Width * 179/750
            return CGSize(width: width, height: height)
        }
    }
    static var cellEdgeInsets:UIEdgeInsets{
        get{
            return  UIEdgeInsets(top: Ptfl_Row_CCell.cellTop, left: 0, bottom: Ptfl_Row_CCell.cellBottom, right: 0)
        }
    }
    static var cellInteritemSpacing:CGFloat{
        get{
            return Ptfl_Row_CCell.interitemSpacing
        }
    }
    
    
    
    @IBOutlet weak var btnLogo_ImgV: UIImageView!
    
    @IBOutlet weak var btnTitle_Lb: UILabel!

    var item:AnyObject?{
        didSet{
            if let item = self.item {
                
                if let item = item as? ProductCategoryModel {
                    self.btnLogo_ImgV.setUrlImage(item.pptimg)
                    self.btnTitle_Lb.text = item.pptname
                }
            }
        }
    }
    

    override func awakeFromNib() {
        
    }
}
